<template>
    <el-dialog title="风控报告" v-model="dialogVisible" @close="dialogFormVisible" :close-on-click-modal="false"
               :close-on-press-escape="false" width="80%">
        <img :src="riskImg" alt="">
        <template #footer>
            <div class="dialog-footer">
                <el-button @click="dialogFormVisible">取 消</el-button>
                <el-button type="primary" :loading="loading" @click="submitFunc">确 定</el-button>
            </div>
        </template>
    </el-dialog>
</template>

<script>
    import OrderApi from '@/api/order.js';
    export default {
        data() {
            return {
                orderId: 0,
                loading: false,
                /*左边长度*/
                formLabelWidth: '100px',
                /*是否显示*/
                dialogVisible: true,
                /*表单*/
                order: {
                    updatePrice: 0,
                    updateExpressPrice: 0.00,
                },
                riskImg:''
            };
        },
        props: ['open_edit'],
        created() {
            this.orderId = this.$route.query.orderId;
            this.getData();
        },
        methods: {
//            获取数据
            getData(){
                let self = this;
                let param = {
                    orderId:data.orderId
                }
                OrderApi.getRickReport(param,true).then(res=>{
                    console.log(res,'res')
                    if(res.data === 1){
                        this.riskImg = res.data
                    }else{
                        // this.
                    }
                })
                console.log(data.orderId,'data')
            },
            /*确认事件*/
            submitFunc(e) {
                
            },

            /*关闭弹窗*/
            dialogFormVisible() {
                this.$emit('close', {openDialog: false});
            }
        }
    };
</script>

<style></style>
